//构造函数模式
function Person(name){
    this.name=name;
    this.getName=function(){
        console.log(this.name)
    }
}
var person=new Person('zhangwang')
console.log(person)